﻿
@{
    ViewBag.Title = "ImagePreview";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@section bodyClass{
    style="margin: 0px; background: #0e0e0e;"
}

@section style{
    <link href="~/css/viewer.min.css" rel="stylesheet" />
}

<ul class="clearfix" style="text-align: center;">
    <li>
        <div id="dowebok" style="text-align: center;">
            <img height="400" id="pic_1" src="@ViewBag.ImgUrl" alt="图片预览" />
        </div>
    </li>
</ul>
@section scriptsBottom{
    <script src="@Url.Content("~/js/viewer-jquery.min.js")"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#dowebok').viewer({
                url: 'data-original'
            });
            $("#pic_1").trigger("click");
        });

    </script>
}




